package com.xjrsoft.module.workflow.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xjrsoft.module.workflow.entity.XjrNwfDelegaterelation;
import com.xjrsoft.module.workflow.mapper.XjrNwfDelegaterelationMapper;
import com.xjrsoft.module.workflow.service.IXjrNwfDelegateRelationService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XjrNwfDelegateRelationServiceImpl extends ServiceImpl<XjrNwfDelegaterelationMapper, XjrNwfDelegaterelation> implements IXjrNwfDelegateRelationService {


    @Override
    public List<XjrNwfDelegaterelation> getBySchemeInfoId(String schemeInfoId) {
        QueryWrapper query = new QueryWrapper();
        query.eq("F_SchemeInfoId", schemeInfoId);
        return baseMapper.selectList(query);
    }

    @Override
    public List<XjrNwfDelegaterelation> getByRuleId(String fId) {
        QueryWrapper query = new QueryWrapper();
        query.eq("F_DelegateRuleId", fId);
        return baseMapper.selectList(query);
    }
}
